/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author PR
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface MesScReport extends BasicModel<MesScReport> {
  ceqtypecode?: string; // EQ类型
  ceqcode?: string; // EQ编号
  ceqname?: string; // EQ名称
  cparaname?: string; // 数据采集点
  udpatetime?: string; // 修改时间
  tagname?: string; // 数据采集点
  val?: string; // 值
}


export const mesScReportListData = (params?: MesScReport | any) =>
  defHttp.post<Page<MesScReport>>({ url: adminPath + '/report/mesScReport/findScList', params });

export const findCeqListData = (params?: MesScReport | any) =>
  defHttp.get<MesScReport>({ url: adminPath + '/report/mesScReport/findCeqListData', params });

export const findCparaListData = (params?: MesScReport | any) =>
  defHttp.get<MesScReport>({ url: adminPath + '/report/mesScReport/findCparaListData', params });